package com.javasee.rain.stock.model;

/**
 * 股票基本信息模型
 * 
 * @author : xinyanfei
 * @date : 2025/10/11
 * Copyright (c) 2025, 京东商城 All Rights Reserved.
 */
public class StockBasic {

    /**
     * 股票代码
     */
    private String code;

    /**
     * 股票名称
     */
    private String name;

    /**
     * 拼音首字母（用于搜索）
     */
    private String pinyin;

    // 构造函数
    public StockBasic() {}

    public StockBasic(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public StockBasic(String code, String name, String pinyin) {
        this.code = code;
        this.name = name;
        this.pinyin = pinyin;
    }

    // Getter 和 Setter 方法
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    @Override
    public String toString() {
        return "StockBasic{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", pinyin='" + pinyin + '\'' +
                '}';
    }
}